package com.yc.forum.dao;

import com.yc.forum.util.DBHelper;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

//敏感词
public class SensitiveWordsDao {
    //获取所有敏感词
    public static List<String> getSensitiveWords(){
        String sql="select sensitive_word from sensitive_words";
        List<Map<String,Object>> list=DBHelper.selectListMap(sql);
        List<String> lis=new ArrayList<>();
        for(Map<String,Object> map:list){
            lis.add(""+map.get("sensitive_word"));
        }
        return lis;
    }
}
